GBML manual / Backgrounds

background_clip_off

Takes the box off a background that background_clip cut down, so all of it shows again.

Works differently on Game Boy - The Game Boy puts the blocks of the box back to the picture one frame after the call.

Works differently on Game Boy Color - The Game Boy Color puts the blocks of the box back to the picture one frame after the call.

Sega Genesis: not built yet

On other consoles this differs: see Side by side and How the consoles differ.

Syntax

background_clip_off(bg)

Arguments

NameType
bgbackground

Returns

Nothing.

Description

Takes the box off a background that background_clip cut down, so all of it shows again. A no-op on nothing, or on a background with no box. The rectangle window the clip held is given back at the end of the frame.

Example

backdrop = background_create(0, 0, ts_doc_dungeon);
background_clip(backdrop, 0, 0, 64, 64);
background_clip_off(backdrop);

Cuts a background down to a small box and then takes the box off again, so the whole picture shows.

On the GBA

A no-op on `nothing`, or on a background with no box. The rectangle window the clip held is given back the next time the frame ends.

See also: background_clipbackground_repeatdraw_backgroundBackgrounds